<?php

class CatalogueNode extends Object {
    protected $name = 'Элемент каталога'; 
    protected $names = 'Каталог';
    
    protected $db_table_name = 'catalogue_nodes';
    protected $db_field_prefix = 'cn_';
    
    protected $fields = array(
       'title'=>array('name'=>'Название', 'type'=>'string', 'editing'=>TRUE, 'not_null'=>TRUE),
       'description'=>array('name'=>'Описание', 'type'=>'text', 'editing'=>TRUE),
       'order'=>array('type'=>'string', 'editing'=>FALSE)
    ); 
}

class CatalogueNodeSet extends Set {
    protected $class_name = 'CatalogueNode';
}

?>
